

package com.example.restaurantfinder.utils;

import android.location.Location;  
import android.location.LocationListener;  
import android.os.Bundle;  
import android.widget.Toast;
  
public class GPS implements LocationListener {  
  
    public static double lati;  
    public static double longi; 
    
   
  
    @Override  
    public void onLocationChanged(Location loc)  
    {  
        loc.getLatitude();  
        loc.getLongitude();  
        lati=loc.getLatitude();  
        longi=loc.getLongitude();  
       // String Text = "test";

        
    }  
  
    @Override  
    public void onProviderDisabled(String provider)  
    {  
        //print "Currently GPS is Disabled";  
    }  
    @Override  
    public void onProviderEnabled(String provider)  
    {  
        //print "GPS got Enabled";  
    }  
    @Override  
    public void onStatusChanged(String provider, int status, Bundle extras)  
    {  
    }  
}  